import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-05-04
 * Time: 20:23
 *///TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static String myToString(int[] array) {
        String[]arr=new String [100];
        arr[0]="[";
        for (int i = 0; i < array.length; i++) {

        }
        System.out.println("]");


    }
    public static void main(String[] args) {
        int[] array = {1,2,3,4,5};
        System.out.println(myToString(array));
    }

    public static void main5(String[] args) {
        Scanner in = new Scanner(System.in);

        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            int[][] arr=new int[10][10];
            for (int i = 0; i < a; i++) {
                for (int j = 0; j < b; j++) {
                     arr[i][j]=in.nextInt();
                }
            }
            for (int i = 0; i < b; i++) {
                for (int j = 0; j < a; j++) {
                    System.out.print(arr[j][i]);
                }
                System.out.print("\n");
            }

            }
        }
    public static void game(){
        //生成随机数
        Random random=new Random();
        int n= random.nextInt(100)+1;

        do{
            System.out.println("请输入你要猜的数：");
            Scanner scanner=new Scanner(System.in);
            int key=scanner.nextInt();

            if(key==n){
                System.out.println("恭喜你！猜到了！");
                break;
            } else if (key>n) {
                System.out.println("猜大了！");
            }else {
                System.out.println("猜小了！");
            }
        }while(true);
    }
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        //猜数游戏
        boolean b=true;
        do{
            System.out.println("**********************");
            System.out.println("*****猜数游戏**********");
            System.out.println("**********************");
            System.out.println("*****1.开始游戏********");
            System.out.println("*****2.退出游戏********");
            System.out.println("**********************");
            System.out.println("下面请输入数字：");
            int a= scanner.nextInt();

            switch(a){
                case 1:
                    System.out.println("现在开始游戏!");
                    game();
                    break;
                case 2:
                    System.out.println("退出游戏！");
                    b=false;
                    break;
                default:
                    System.out.println("输入错误，请重新输入！");
                    break;
            }

        }while(b);



    }
}